package com.jin.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@ApiModel(value = "com-jin-pojo-OrderDesc")
public class OrderDesc {
    /**
     * 订单ID
     */
    @ApiModelProperty(value = "订单id")
    private Integer orderId;

    /**
     * 订单信息
     */
    @ApiModelProperty(value = "订单信息")
    private String orderInfo;

    /**
     * 订单时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "订单时间")
    private Date orderTime;

    /**
     * 订单审批状态
     */
    @ApiModelProperty(value = "订单审批状态")
    private ApproveInfo approveStatus;


    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public String getOrderInfo() {
        return orderInfo;
    }

    public void setOrderInfo(String orderInfo) {
        this.orderInfo = orderInfo;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public ApproveInfo getApproveStatus() {
        return approveStatus;
    }

    public void setApproveStatus(ApproveInfo approveStatus) {
        this.approveStatus = approveStatus;
    }

    public OrderDesc() {
    }

    public OrderDesc(Integer orderId, String orderInfo, Date orderTime, ApproveInfo approveStatus) {
        this.orderId = orderId;
        this.orderInfo = orderInfo;
        this.orderTime = orderTime;
        this.approveStatus = approveStatus;
    }
}
